package com.rzdata.poct.system.domain.business.bo;

import com.rzdata.poct.common.core.domain.BaseEntity;
import com.rzdata.poct.common.core.validate.AddGroup;
import com.rzdata.poct.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * POCT设备操作业务对象 poct_instrument_logs
 *
 * @author ruoyi
 * @date 2021-09-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("POCT设备操作业务对象")
public class PoctInstrumentLogsBo extends BaseEntity {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", required = true)
    @NotNull(message = "主键不能为空", groups = { AddGroup.class })
    private Long id;

    /**
     * 仪器ID
     */
    @ApiModelProperty(value = "仪器ID", required = true)
    @NotNull(message = "仪器ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String instrumentNo;

    /**
     * 操作类型
     */
    @ApiModelProperty(value = "操作类型")
    private Long optType;

    /**
     * 操作者
     */
    @ApiModelProperty(value = "操作者")
    private String operator;

    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    private Date optTime;

    /**
     * 仪器名称
     */
    @ApiModelProperty(value = "仪器名称")
    private String instrumentName;

    /**
     * 所属科室
     */
    @ApiModelProperty(value = "所属科室")
    private String deptName;


    /**
     * 分页大小
     */
    @ApiModelProperty("分页大小")
    private Integer pageSize;

    /**
     * 当前页数
     */
    @ApiModelProperty("当前页数")
    private Integer pageNum;

    /**
     * 排序列
     */
    @ApiModelProperty("排序列")
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    @ApiModelProperty(value = "排序的方向", example = "asc,desc")
    private String isAsc;

}
